package cn.dm.service;

import cn.dm.client.RestDmAreaClient;
import cn.dm.common.Dto;
import cn.dm.common.DtoUtil;
import cn.dm.feignclient.UserFeignClient;
import cn.dm.pojo.DmArea;
import com.sun.javafx.collections.MappingChange;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class LocalBaseServiceImpl implements LocalBaseService {
    @Resource
    private RestDmAreaClient restDmAreaClient;

    @Override
    public Dto queryCityList() throws Exception {
        Map<String,Object> param=new HashMap<String,Object>();
        List<DmArea> dmAreaList = restDmAreaClient.getDmAreaListByMap(param);
        return DtoUtil.returnDataSuccess(dmAreaList);
    }
}
